package cn.gzjp.modules.rice.service;

import java.util.List;

import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import cn.gzjp.common.persistence.Page;
import cn.gzjp.common.service.CrudService;
import cn.gzjp.modules.rice.entity.RiceCouponLog;
import cn.gzjp.modules.rice.dao.RiceCouponLogDao;

/**
 * 粮票记录Service
 * @author zengcp
 * @version 2018-12-01
 */
@Service
@Transactional(readOnly = true)
public class RiceCouponLogService extends CrudService<RiceCouponLogDao, RiceCouponLog> {

	public RiceCouponLog get(String id) {
		return super.get(id);
	}
	
	public List<RiceCouponLog> findList(RiceCouponLog riceCouponLog) {
		return super.findList(riceCouponLog);
	}
	
	public Page<RiceCouponLog> findPage(Page<RiceCouponLog> page, RiceCouponLog riceCouponLog) {
		return super.findPage(page, riceCouponLog);
	}
	
	@Transactional(readOnly = false)
	public void save(RiceCouponLog riceCouponLog) {
		super.save(riceCouponLog);
	}
	
	@Transactional(readOnly = false)
	public void delete(RiceCouponLog riceCouponLog) {
		super.deleteByLogic(riceCouponLog);
	}
	
}